pharmacogenetic algorithm